package com.spboot.mapper;

import com.spboot.entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guocb
 * @since 2020-04-27
 */
public interface AddressMapper extends BaseMapper<Address> {
    //查询用户地址
    List<Address> saddress(Integer userid);

    //修改用户地址
    int updateaddress(String contacts,String phone,String address,Integer addressid);

    //添加用户地址
    int insertaddress(String address,Integer userid,String contacts,String phone);

    //删除用户地址
    int deleteaddress(Integer addressid);
}
